<?php

namespace App\Http\Controllers;

use App\Http\Controllers\Controller;
use App\Traits\ApiResponse;

class BaseController extends Controller
{
    use ApiResponse;
    protected $guard = 'api'; //如果不设置成员变量，使用的时候请使用助手函数，例如：$token = auth('api')->tokenById($uid);
    /**
     * Create a new AuthController instance.
     *
     * @return void
     */
    public function __construct()
    {
        // $this->middleware('refresh', ['except' => ['login','register']]);
    }
}
